package com.hanxu.mallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hanxu.common.utils.PageUtils;
import com.hanxu.mallproduct.entity.AttrEntity;
import com.hanxu.mallproduct.entity.ProductAttrValueEntity;
import com.hanxu.mallproduct.vo.AttrGroupRelationVo;
import com.hanxu.mallproduct.vo.AttrRespVo;
import com.hanxu.mallproduct.vo.AttrVo;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author hanxu
 * @email hanxu@gmail.com
 * @date 2025-03-16 20:27:38
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId,String attrType) throws UnsupportedEncodingException;

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId) throws UnsupportedEncodingException;

}

